package com.ayit.car.service;

import com.ayit.car.common.result.PageResult;
import com.ayit.car.pojo.Vehicles;
import com.ayit.car.pojo.dto.VehiclesDTO;
import com.ayit.car.pojo.dto.VehiclesPageQueryDTO;
import com.ayit.car.pojo.vo.VehiclesVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author 为王下葬
* @description 针对表【vehicles(具体车辆表)】的数据库操作Service
* @createDate 2024-06-24 18:12:48
*/
public interface VehiclesService extends IService<Vehicles> {

    /**
     * 添加车辆信息
     * @param vehiclesDTO
     */
    void add(VehiclesDTO vehiclesDTO);

    /**
     * 删除车辆信息
     * @param ids
     */
    void delete(List<Long> ids);

    /**
     * 修改车辆信息
     * @param vehiclesVO
     */
    void updateVehicles(VehiclesVO vehiclesVO);

    /**
     * 分页查询车辆信息
     * @param vehiclesPageQueryDTO
     * @return
     */
    PageResult pageQuery(VehiclesPageQueryDTO vehiclesPageQueryDTO);

    /**
     * 获取车辆信息
     * @param id
     * @return
     */
    VehiclesVO getCarInfo(Long id);
}
